<?php
//公共model层
namespace app\common\model;

use think\Model;

class BaseModel extends Model
{
    //添加商铺基本信息
    public function add($data)
    {
        $data['status'] = 0;
        $this->save($data);
        return $this->id;
    }

    public function updateById($time, $id)
    {
        $this->allowField(true)->save($time, ['id' => $id]);
    }
}
